package manage.model;

import m.common.model.FieldMeta;
import m.common.model.Model;
import m.common.model.TableMeta;
import m.common.model.type.FieldType;

import java.util.Date;
@TableMeta(name="os_server_host",description="服务主机记录表")
public class ServerHost extends Model {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@FieldMeta(name="ipport",type=FieldType.STRING,length=30,description="ipport")
	private String ipport;
	@FieldMeta(name="log_date",type=FieldType.DATE,description="记录时间")
	private Date logDate;
	@FieldMeta(name="end_date",type=FieldType.DATE,description="结束时间")
	private Date endDate;
	@FieldMeta(name="invalid_request",type=FieldType.INT,description="无效请求")
	private Integer invalidRequest;
	@FieldMeta(name="total",type=FieldType.INT,description="请求次数")
	private Integer total;//
	@FieldMeta(name="access_long",type=FieldType.DOUBLE,description="时长|单位秒")
	private Double accessLong;//
	@FieldMeta(name="avg_long",type=FieldType.DOUBLE,description="平均时长|单位秒")
	private Double avgLong;//
	
	@FieldMeta(name="total_memory",type=FieldType.DOUBLE,description="JVM总内存")
	private Double totalMemory;//JVM总内存
	@FieldMeta(name="free_memory",type=FieldType.DOUBLE,description="JVM分配内存")
	private Double freeMemory;//JVM分配内存
	@FieldMeta(name="max_memory",type=FieldType.DOUBLE,description="JVM最大内存")
	private Double maxMemory;//JVM最大内存
	@FieldMeta(name="db_use_link_num",type=FieldType.INT,description="数据库当前连接数")
	private Integer dbUseLinkNum;//数据库当前连接数
	@FieldMeta(name="db_max_link_num",type=FieldType.INT,description="数据库连接数峰值")
	private Integer dbMaxLinkNum;//数据库连接数峰值
	@FieldMeta(name="mem_total",type=FieldType.DOUBLE,description="系统总内存")
	private Double memTotal;
	@FieldMeta(name="mem_used",type=FieldType.DOUBLE,description="系统剩余内存")
	private Double memUsed;
	@FieldMeta(name="cpu_user",type=FieldType.DOUBLE,description="用户CPU使用率")
	private Double cpuUser;
	@FieldMeta(name="cpu_combined",type=FieldType.DOUBLE,description="总CPU使用率")
	private Double cpuCombined;

	public Integer getInvalidRequest() {
		return invalidRequest;
	}

	public void setInvalidRequest(Integer invalidRequest) {
		this.invalidRequest = invalidRequest;
	}

	public Double getAccessLong() {
		return accessLong;
	}
	public Double getMemTotal() {
		return memTotal;
	}
	public void setMemTotal(Double memTotal) {
		this.memTotal = memTotal;
	}
	public Double getMemUsed() {
		return memUsed;
	}
	public void setMemUsed(Double memUsed) {
		this.memUsed = memUsed;
	}
	public Double getCpuUser() {
		return cpuUser;
	}
	public void setCpuUser(Double cpuUser) {
		this.cpuUser = cpuUser;
	}
	public Double getCpuCombined() {
		return cpuCombined;
	}
	public void setCpuCombined(Double cpuCombined) {
		this.cpuCombined = cpuCombined;
	}
	public void setAccessLong(Double accessLong) {
		this.accessLong = accessLong;
	}
	public Double getAvgLong() {
		return avgLong;
	}
	public void setAvgLong(Double avgLong) {
		this.avgLong = avgLong;
	}
	public Date getEndDate() {
		return endDate;
	}
	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	public Integer getTotal() {
		return total;
	}
	public void setTotal(Integer total) {
		this.total = total;
	}
	public String getIpport() {
		return ipport;
	}
	public void setIpport(String ipport) {
		this.ipport = ipport;
	}
	public Date getLogDate() {
		return logDate;
	}
	public void setLogDate(Date logDate) {
		this.logDate = logDate;
	}
	public Double getTotalMemory() {
		return totalMemory;
	}
	public void setTotalMemory(Double totalMemory) {
		this.totalMemory = totalMemory;
	}
	public Double getFreeMemory() {
		return freeMemory;
	}
	public void setFreeMemory(Double freeMemory) {
		this.freeMemory = freeMemory;
	}
	public Double getMaxMemory() {
		return maxMemory;
	}
	public void setMaxMemory(Double maxMemory) {
		this.maxMemory = maxMemory;
	}
	public Integer getDbUseLinkNum() {
		return dbUseLinkNum;
	}
	public void setDbUseLinkNum(Integer dbUseLinkNum) {
		this.dbUseLinkNum = dbUseLinkNum;
	}
	public Integer getDbMaxLinkNum() {
		return dbMaxLinkNum;
	}
	public void setDbMaxLinkNum(Integer dbMaxLinkNum) {
		this.dbMaxLinkNum = dbMaxLinkNum;
	}
	
}
